

<% form_tag url_for(:controller => "advertisments",  :action => "post_free_ad" ,:step=>2,:type=>"student") do  -%>
  <div class="registration-user-fields">
      <div class="registration-field-text">*of:</div>
      <div class="registration-field-value">
        <%#= select_tag :university, options_for_select($universities) %>
        <input type="text" id="university" name="university"   size="60"/>
        <div id="university_suggestions" style="display:block;border:1px solid orange;cursor:pointer;font-weight:normal;background-color:#fffff1;list-style: none; color:green"><!-- container for list of probable suggestions !--></div>

      </div>
       <div id="left-column-start" style="display:none;"></div>
  </div>

  <div class="registration-user-fields">
    <div class="registration-field-text">*Select Category:</div>
        <div class="registration-field-value">
            <div class="registration-drop-down-button">
                <input type="text" id="user_interests" readonly value="Select your interests" class="dropdown" onclick="$('registration-interest-drop-down').style.display='block';$('registration-interest-drop-down').style.visibility='visible';$('registration-interest-drop-down').style.height='auto'"/>
            </div>
            <div class="registration-interest-drop-down" id="registration-interest-drop-down" style="display:none;">
              <%UserType.find_by_stripped_name('student').categories_for_posting.each do |category| %>
                <div class="registration-interest-division" id="interest_<%=category.stripped_name-%>">
                    <ul>
                        <li><div class="registration-category-header"><%=image_tag "interests-"+category.stripped_name+'.png',:border=>0,:width=>"21",:height=>"21" -%>&nbsp;&nbsp;<%=category.name -%></div></li>
                        <%category.sub_categories.each do |sub_category| -%>
                        <li><%=radio_button(:sub_category, :stripped_name, sub_category.stripped_name,:onclick=>"$('registration-interest-drop-down').style.visibility='hidden';$('registration-interest-drop-down').style.height='0px';pageScroll(); $('user_interests').value='#{category.name}>>#{sub_category.name}'") -%><div class="registration-interest"><%= sub_category.name -%></div></li>

                        <%end%>
                    </ul>
                </div>
               <%end%>
           </div>
        </div>
        <div style ="clear:both;margin:0"><br>&nbsp; </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My Name:
            </div>
            <div class="registration-field-value">
            	<%=text_field :student, :full_name ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My E-mail ID:
            </div>
            <div class="registration-field-value">
                  <%=text_field :student, :email ,:size => 40,:class=>"input-box",:value=> (params[:student].nil? ? ""  : params[:student][:email]) , :maxlength=>"100",:onblur=>"$('email_status').style.display='block';"+remote_function(:url => 'check_email', :with => "'email='+this.value",:update=>"email_status") -%>
            </div>
            <div class="registration-field-value" id="email_status" style="display:none;font-size:10px;">

            </div>
        </div>

        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My Mobile Number:
            </div>
            <div class="registration-field-value">
              <%=text_field :student, :mobile_no ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	My University E-mail ID:
            </div>
            <div class="registration-field-value">
               <%=text_field :student, :university_email ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
            <br/>
            <br/>
            <br/>
            <br/>
        </div>
        <div class="registration-button">
          <%=image_submit_tag("proceed-button.jpg")%>
       </div>
        <div class="regitration-policy">
        	By clicking the button above, you are indicating that you have read, understood, and agree to SearchMycampus's <a href="">Terms of use</a>
            <br/>
            <br/>
            * required
     
        </div>
        <%end -%>
           